package com.zgc.zkinfo;

import com.zgc.cache.ZkServiceCache;

public class ZkServiceFactory {


    public static ZkService getZkService(String id) {
        ZkService curatorZkClient = ZkServiceCache.getService(id);
        if (curatorZkClient == null) {
            curatorZkClient = new ZkService();
            ZkServiceCache.putService(id, curatorZkClient);
        }
        return curatorZkClient;
    }

}
